## 输出数字金字塔
for x in range(1,10):
    print(' '*(15-x),end='')
    n=x
    while n>=1:
        print(n,end='')
        n-=1
    n+=2
    while n<=x:
        print(n,end='')
        n+=1
    print()


import random
n=0
while n<10:
    x=random.randint(10,99)
    a=2
    while a<x-1:
        if x%a==0:break
        a+=1
    else:
        print(x," ",end='')
        n+=1


